package cn.zyq.demo.system.config.sms;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "ali.sms")
public class SmsConfig {
    public static String accessKeyId;
    public static String accessKeySecret;
    public static String endpoint;
    public static String templateCode;

    public void setAccessKeyId(String accessKeyId) {
        SmsConfig.accessKeyId = accessKeyId;
    }

    public void setAccessKeySecret(String accessKeySecret) {
        SmsConfig.accessKeySecret = accessKeySecret;
    }
    public void setEndpoint(String endpoint) {
        SmsConfig.endpoint = endpoint;
    }
    public void setTemplateCode(String templateCode) {
        SmsConfig.templateCode = templateCode;
    }
}
